body {
  margin: 0px;
}

.main {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #000;
  color: #fff;
}
/* :nth-of-type(n)表示第n个元素 */
.main > div:nth-of-type(2) {
  flex: 1;
  overflow-y: auto;
}

.search-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #222;
  padding: 3vw;
}

.search-box img {
  display: block;
  height: 1.5em;
  width: auto;
}

.search {
  display: flex;
  align-items: center;
  border: 1px solid #666;
  padding: 0.5rem;
  border-radius: 2rem;
}

.search input {
  border-width: 0px;
  outline: none;
  background-color: transparent;
  color: #fff;
}

.menu-box {
  display: flex;
  justify-content: space-between;
  background-color: #222;
  padding: 3vw 3vw 0px 3vw;
  height: 2em;
}

.menu-box img {
  display: block;
  height: 1.5em;
  width: auto;
}

.menu-box .active {
  color: #d44e80;
  border-bottom: 4px solid #d44e80;
}

/* 首页，关注，会员购，bilibili */
.bottom-box {
  display: flex;
  justify-content: space-around;
  background-color: #222;
  color: #fff;
  padding: 0.2rem 0px;
  text-align: center;
}

.bottom-box img {
  display: block;
  width: 2rem;
  /* 设置元素的宽度之后，可以通过下面的代码让元素在容器中居中 */
  margin: 0 auto;
  height: auto;
}

.bottom-box .active {
  color: #d44e80;
}

.add {
  width: 3.5rem;
  height: 3.5rem;
  background-color: #d44e80;
  font-size: 2.5rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  border-radius: 30%;
}

.img-box {
  position: relative;
  margin: 0.2rem;
  border-radius: 0.5rem;
}

.img-box img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.img-box > div {
  position: absolute;
  left: 0px;
  bottom: 0px;
  padding: 0.4rem 1rem;
  background-color: rgba(0, 0, 0, 0.4);
  width: 100%;
}

.img-box2 {
  display: flex;
  justify-content: space-evenly;
}

.img-box2 > div {
  width: 48.5vw;
  background-color: #222;
  border-radius: 0.3rem;
}

.img-box2 img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.3rem;
}

.img-box3 {
  position: relative;
}

.img-box3 > div {
  position: absolute;
  left: 0.5rem;
  bottom: 0.3rem;
  font-size: 0.8rem;
}

.text1 {
  padding: 0.5rem;
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  white-space: nowrap;
}

.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.1rem 0.5rem;
  font-size: 0.8rem;
}

.intro img {
  display: block;
  width: 1rem;
  height: auto;
}

.info1 {
  display: inline-block;
  padding: 0.1rem;
  font-size: 0.7rem;
  background-color: rgba(245, 140, 140, 0.7);
  color: #a31a4c;
  border-radius: 0.1rem;
}
